=mevte6">=link r=link rmtnble width="100%" sumlary="Navigavoon header">mtr>=th colt th="3" align="center:nChapter 35. Howato CompilerSon, l/th>=/tr>=tr>=td width="20%" align="left">=a accesskey="p"ehref="Appendix.html">Prev="am =th width="60%" align="center:nPart VI. Appendixes=td width="20%" align="right"m Nid2="am=/tr>=/tnbleu hr>mcan prt1" lang="echapteriv class="titlepage">

="amChapter 35. Howato CompilerSon, l/h2div>prelfirstLDIFprelrtmerLDIFprelsurLDIFprelorgLDIFmat themt1" lang="eaddress">=pitname">prelemail"><mtehref="mailto:jelms @son, .org">jelms @son, .org="am>maty

mcan prcan prcan prv>prelfirstLDIFprelrtmerLDIFprelsurLDIFprelorgLDIFmat themt1" lang="eaddress">=pitname">prelemail"><mtehref="mailto:jht@son, .org">jht@son, .org="am>maty

mcan prcan prcan prv>prelfirstLDIFprelsurLDIFprelorgLDIFmat themt1" lang="eaddress">=pitname">prelemail"><mtehref="mailto:tridge@son, .org">tridge@son, .org="am>maty

mcan prcan prcan prv> 22aMay 2001 map>mcan prt1"prp style="pubdate"> 18aMarchr2003 map>mcan prcan prt1"p> You can prlepage">=pitb>Tnble of Contet smdlu dt>mt thme">preln"><1i>mtehref="compilith.html#>Im596022mdd>mdlu dt>mt thme">preln"><2i>mtehref="compilith.html#>Im596029">I=troduction="ammdt>mt thme">preln"><2i>mtehref="compilith.html#>Im596070">Subas sion Accessatoanon, .org="amm/dlu cadu dt>mt thme">preln"><1i>mtehref="compilith.html#>Im596250mdt>mt thme">preln"><1i>mtehref="compilith.html#>Im596316mdt>mt thme">preln"><1i>mtehref="compilith.html#>Im596454:nBuildith tTe Binariesmdd>mdlu dt>mt thme">preln"><2i>mtehref="compilith.html#>Im596638:nCompilith Son, withaActive Dir">preln"><1i>mtehref="compilith.html#>Im596796">Startitg tTeusmbd and nmbdmdd>mdlu dt>mt thme">preln"><2i>mtehref="compilith.html#>Im596888">Startitg fC. inetd.crnfl/ammdt>mt thme">preln"><2i>mtehref="compilith.html#>Im597093prelcrmmand">rsync="b>mat the. map>mt1" lang="en"><1iv class="titlepage">

Im596022

You can prt1" lang="en"><2iv class="titlepage">

Im596029">="amIntroduction="h3div>

You can pres mtelang="ei="id2551616">Im596036">="am Son, is developed inaan rpenaenvironmet . Developers use a Subas sion toa“lt thme">prelquove">mt thme">prelemphasis"tlem>lheckinmaem>mat themat the” (also known asa “lt thme">prelquove">mt thme">prelemphasis"tlem>lrmmitmaem>mat themat the”) new srorce code. Son, 's various Subas sion branchesrcan be accessed vi anonymous Subas sion usith tTe ins ructions detailed in tTis chapter. map>mes TTis chapter isaa modified as sion of tTeuins ructions found av tTe mtehref="http://son, .org/son, /subas sion.html" carget="_top:nSan, ="am web site. map>mcan prt1" lang="en"><2iv class="titlepage">

Im596070">="amSubas sion Accessatoanon, .org="h3div>

You can pres Thmt1" lang="en"><3iv class="titlepage">

Im596083

You can pres mtelang="ei="id2551616">Im596091">="am YrorcanraccessatTeusrorce code vi yrorafavorite WWW browss . TTis allowsuyrorto access tro contet s of i="ividual files in tTe repository and also to lookaatutToarevision Tistory and lrmmit lohs of i="ividual files.aYrorcanralso ask for a diff li cith bmes Use tro URL: mtehref="http://svnweb.son, .org/" target="_top:nhttp://svnweb.son, .org/="am map>mcan prt1" lang="en"><3iv class="titlepage">

Im596118

You can pres Yrorcanralso accessatTeusrorce code vi a normal Subas sion cliet . TTis gfves yrormuch more control oas wTatuyrorcanr doawithatTe repository and allowsuyrorto lheckout wholeusrorce trees and keep tTem up-to-date vi normal Subas sion commands.aTTis is tTe prefer ed IFtTod of access ifuyrorare a developer and not just telasual browss . map>mesIn orde atorb< nble to download tTe Son, srorces off Subas sion,uyrornsed a Subas sion cliet . Yroradistribuvoon mightuinclude ote, or yrorcanrdownload tTe srorces fC. mes Toagainraccessavi anonymous Subas sion,ause tro followith steps. map>mlepage">=li>mes Install a recentacopy rfuSubas sion. All yrorreallyunsed isaa copy rfutTe Subas sion cliet binary. map>mcli>mli>mes Run tro commanda map>mes preluserinput:nxty svn co svn://svnanon.son, .org/son, / runk non, l/ty mes TTis will lreate a dir">prelfileLDIFmes Subas sion branchesrotmer tTenutrunk cae bprelquove">mt thme">prelemphasis"tlem>Developmentmaem>mat themat the” v>mes preluserinput:nxty svn co svn://svnanon.son, .org/son, /branches/SAMBA_3_0 non, _3l/ty mcli>mli>mes WTeneverayrorwantatoamergeainrtTe lates code changes,ause tTe followith command fC. within tTeuSan, dir">mes preluserinput:nxty svn updatel/ty mcli>m/ol>mcan prcan prcan prv><1iv class="titlepage">

Im596250

You can pres mtelang="ei="id2551616">Im596m59">="am mtelang="ei="id2551616">Im596m66">="am mi ce">pss as .non, .org="ty mes TTeadisadvant>prelcrmmand">rsync="b>mat the access is most crnvenient for an initial install. map>mv><1iv class="titlepage">

Im596316

You can pres mtelang="ei="id2551616">Im596324">="am I isustrongly recommended tTatuyro as ifyutTe PGP signature for any srorce file bmes WithatTa rsaid, go ahead and download tTe followith files: map>mpre lang="encre="ti mname">prelpromp ">$ l/ty preluserinput:nxty wgetahttp://us1.son, .org/son, /ftp/son, -3.0.0.tar.ascl/ty prelpromp ">$ l/ty preluserinput:nxty wgetahttp://us1.son, .org/son, /ftp/son, -pubkey.ascl/ty mes mtelang="ei="id2551616">Im596372">="am Thmpre lang="encre="ti mname">prelpromp ">$ l/ty preluserinput:nxty gpg --import son, -pubkey.ascl/ty mes and as ifyutTe Son, srorce code integrity with: map>mpre lang="encre="ti mname">prelpromp ">$ l/ty preluserinput:nxty gzip -d son, -3.0.0.tar.gzl/ty prelpromp ">$ l/ty preluserinput:nxty gpg --as ifyuson, -3.0.0.tar.ascl/ty mes Ifuyrorrecefve a messnge like, “lt thme">prelquove">mt thme">prelemphasis"tlem>Good signature fC. Son, Distribuvoon Verificavion Key...maem>mat themat the” tTenuall is well. TTeuwarnithsaabout trust rmpre lang="encre="ti gpg: BAD signature fC. “lt thme">prelquove">mt thme">prelemphasis"tlem>Son, Distribuvoon Verificavion Keymaem>mat themat the” mapre>mv><1iv class="titlepage">

Im596454:n="amBuildith tTe Binaries

You can pres mtelang="ei="id2551616">Im596463">="am ToabuildutTe binaries,afirst runatro program preluserinput:nxty ./crnfigure maty ="b> in tTeusrorce dir">mpre lang="encre="timname">prelpromp ">root# l/ty preluserinput:nxty ./crnfigure --help maty ="b>mapre>mesfirst toanee wTa rspecial options yrorcanrennble. Now execute preluserinput:nxty ./crnfigure withaany argumet s it mightunsed:map>mpre lang="encre="timname">prelpromp ">root# l/ty preluserinput:nxty ./crnfigure mi ce">Im596529">="am map>mpre lang="encre="timname">prelpromp ">root# l/ty preluserinput:nxty makemapre>meswill lreate tTe binaries. Once i isusuccessfullyu compiled yrorcanrusemap>mpre lang="encre="timname">prelpromp ">root# l/ty preluserinput:nxty make installmapre>mestoainstall tTe binaries and manualapages.aYrorcanr separatelyuinstall tTe binaries and/orumanrpnges usitgmap>mpre lang="encre="timname">prelpromp ">root# l/ty preluserinput:nxty make installbin maty ="b>mapre>mesandmap>mpre lang="encre="timname">prelpromp ">root# l/ty preluserinput:nxty make installman maty ="b>mapre>mesNote tTat ifuyrorare upgraditg fC. a previous as sion of Son, yrormightulike to knowatTav the oldaas sions of tTe binaries will be re6">prelquove">mt thme">prelemphasis"tlem>.oldmaem>mat themat the” id25nsion. Yror cae go backrto tro previous as sion withmap>mpre lang="encre="timname">prelpromp ">root# l/ty preluserinput:nxty make revert maty ="b>mapre>mesifuyrorfind tTis as sion aadisaster!map>mt1" lang="en"><2iv class="titlepage">

Im596638:n="amCompilith Son, withaActive Dir">=li>mesTTeuMIT or HeimdalaKerberos development libraries (eitmer install fC. tTe srorces or use aapacknge).map>mcli>mli>mesTT< OpenLDAP development libraries.map>mcli>m/ulu can presIf yroraKerberos librariesrare inra non-standard locavion, tTen remembe atoraddrtToacrnfigure option mname">preloption">--with-krb5=mi ce">mesAfterayrorrunacrnfigure, makersure tTav mname">prelfileLDIFmpre lang="eprogramli cithti #defite HAVE_KRB5 1 #defite HAVE_LDAP 1 mapre>mesIfrit does not,acrnfigure di not find yroraKRB5 librariesror yroraLDAP libraries. Lookainrmname">prelfileLDIFmt1" lang="en"><3iv class="titlepage">

Im596704">="amInstalling tToaRequi ed Packnges for Debian

You can presOn Debian,uyrornsed to install tTe followith packnges:map>mes mt1" lang="eitemizedli c:nxul yp=li>libkrb5-dev="li>mli>krb5-usermcli>m/ulu can pres map>mv><3iv class="titlepage">

Im596729">="amInstalling tToaRequi ed Packnges for Red HataLinux

You can presOn Red HataLinux, tTis means yrorshoto haveu t least: map>mes mt1" lang="eitemizedli c:nxul yp=li>krb5-wbikstavoon (for kinit)="li>mli>krb5-libs (for linking with)="li>mli>krb5-devel (because yrorare compilith fC. srorce)mcli>m/ulu can pres map>mesin addition toatTe standard development environmet .map>mesIfutTese files are not installed on yror system, yrorshoto checkrtheuinstallavoon CDsatorfind wTich has tTem andainstall tTe files usitg yror tool of choice. Ifuin doubt about wTatutool toruse, refer toatTe Red HataLinux documentavoon.map>mv><3iv class="titlepage">

Im596770">="amSuSEaLinux PackngeaRequi emet s

You can presSuSEaLinux installs Heimdalapacknges tTav may b< requi ed to allowuyrorto build binaryapacknges. Yrorshoto as ifyutTat tTo development libraries haveubeenuinstalled on yrorasystem. map>mesSuSEaLinux Son, RPMs support Kerberos. Please refer toatTe documentavoon for yroraSuSEaLinux systemufor informavoon regardith SuSEaLinux specific crnfiguratire. Additionally, SuSEaare as y active in tTeumainteLDncF of Son, packnges tTav provide tTe maximumrcapabilities tTav are availnble. Yrorshoto consider usith SuSEaprovided packnges whermv><1iv class="titlepage">

Im596796">="amStartitg tTeuprelapplicavion">smbdmat the andaprelapplicavion">nmbdmat the

You can pres mtelang="ei="id2551616">Im596814">="am Yrormust choose torstartuprelapplicavion">smbdmat the andaprelapplicavion">nmbdmat the eitmer as daemons or fC. prelapplicavion">inetdmat the. Don't try toado both! Eitmer yrorcanrputatTem inrmname">prelfileLDIFprelapplicavion">inetdmat the or prelapplicavion">xinetdmat the, or yrorcanrstartutTem as daemons eitmer fC. tTe command lote or inrmname">prelfileLDIFmesTTeumain advant>prelapplicavion">smbdmat the andaprelapplicavion">nmbdmat the usith tTe recommended daemon IFtTod is tTav they willarespond slightly more quickly toran initial crnnecvoon reques .map>mt1" lang="en"><2iv class="titlepage">

Im596888">="amStartitg fC. inetd.crnfl/h3div>

You can prtelang="ei="id2551616">Im596894">="amrt1" lang="enove"esprelfileLDIFmpre lang="eprogramli cithtinetbios-ssn 139/tcpmapre>mesSimilnrly for 137/udp, yrorshoto haveu n entry like:map>mpre lang="eprogramli cithtinetbios-ns 137/udpmapre>mesNid2, edituyroramname">prelfileLDIFmpre lang="eprogramli cithti netbios-ssn strea tcpunowaituroot /usr/local/son, /bin/smbd smbd netbios-ns dgram udp waituroot /usr/local/son, /bin/nmbd nmbd mesTTeuexact syntax rfumname">prelfileLDIFmes Im596971">="am Somoadistribuvoons use xinetduinstead of i=etd. Consult tTe xinetdumanualafor crnfiguratire informavoon.map>mt1" lang="enove"esprelfileLDIFprelfileLDIFprelfileLDIFmcan prt1" lang="enove"esIm597009">="am On many systemsuyrormay nsed to use tTe Im597017">="aminterfaces opvoon in mname">prelfileLDIFprelapplicavion">ifcrnfigmat the asuroot ifuyrordo not knowawTatutToabroadcas isafor yror net.aprelapplicavion">nmbdmat the tries torde2551ineui av run time, bu rfails on soIFaUNIXes. mcan prt1" lang="ewarnith"esprelfileLDIFprelcrmmand">inetdmab>mat the.map>mv>Restartuprelapplicavion">inetdmat the, perhaps just send it teHUP. map>mere lang="encre="ti mname">prelpromp ">root# l/ty preluserinput:nxty killall -HUP inetdmaty mv><2iv class="titlepage">

Im597093prelapplicavion">smbdmat the asaa Daemon="h3div>

You can pres Im597107">="am To startutTeass as asaa daemon, yrorshoto create aascriptasoIFtTing like tTis ote, perhaps calling it mname">prelfileLDIFmere lang="eprogramli cithti #!/bin/sh /usr/local/son, /bin/smbd -D /usr/local/son, /bin/nmbd -D mesMake it executnble with prelcrmmand">chmod +x startsmbmat themap>mesYrorcanrtTen run prelcrmmand">startsmbmat the by hand or execute it fC. prelfileLDIFmp>To kill it,usend a kill signalato tro processFs prelapplicavion">nmbdmat the andaprelapplicavion">smbdmat the.map>mt1" lang="enove"esprelfileLDIFmcan prcan prcan prv>=a accesskey="p"ehref="Appendix.html">Prev="am =td width="20%" align="center:n=a accesskey="u"ehref="Appendix.html">Up="am=td width="40%" align="right"m Nid2="am=/tr>=tr>=td width="40%" align="left" valign="top:nPart VI. Appendixes =td width="20%" align="center:n=a accesskey="h"ehref="i="id.html">HoIF="am=td width="40%" align="right" valign="top:n Chapter 36. Portability=/tr>=/tnbleu can prcbodyemahtml>